package com.love_weinuo.util.dialog;

import android.content.Context;
import android.databinding.DataBindingUtil;
import android.view.LayoutInflater;

import com.love_weinuo.R;
import com.love_weinuo.databinding.DialogUpdataApkBinding;

/**
 * Created by Administrator on 2019/3/23.
 */

public class UpdadaApkDialog extends BaseDialog {

    Context context;
    DialogUpdataApkBinding binding;

    public UpdadaApkDialog(Context context) {
        super(context);
        this.context = context;
        binding = DataBindingUtil.inflate(LayoutInflater.from(context), R.layout.dialog_updata_apk, null, false);
        binding.setDialog(this);
        setContentView(binding.getRoot());
        setCanceledOnTouchOutside(false);
    }

    public void setBar(Float d){
        binding.rpModuleProgressBar.setProgress(d);
    }

}

